package Filtros.Comparadores;

import Classes.Contacto;
import Filtros.Extractores.Extractor;

/**
 * Define la funcionalidad básica de un comparador
 * @author Mj
 */
public abstract class Comparador {

    protected Extractor A, B;

    public Comparador() {
    }

    public Comparador(Extractor extrA, Extractor extrB) {
        A = extrA;
        B = extrB;
    }

    public void setA(Extractor extrA) {
        A = extrA;
    }

    public Object getA() {
        return A;
    }

    public void setB(Extractor extrB) {
        B = extrB;
    }

    public Object getB() {
        return B;
    }

    public abstract boolean Comparar(Contacto cont);

    @Override
    public abstract String toString();
}
